.class Lcom/example/m6wmr/MyuserActivity$3;
.super Landroid/os/Handler;
.source "MyuserActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/MyuserActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/MyuserActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/MyuserActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/MyuserActivity$3;->this$0:Lcom/example/m6wmr/MyuserActivity;

    .line 191
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 14
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    const/4 v13, 0x0

    .line 193
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 194
    iget v10, p1, Landroid/os/Message;->arg1:I

    packed-switch v10, :pswitch_data_0

    .line 272
    :cond_0
    :goto_0
    :pswitch_0
    return-void

    .line 201
    :pswitch_1
    iget-object v10, p0, Lcom/example/m6wmr/MyuserActivity$3;->this$0:Lcom/example/m6wmr/MyuserActivity;

    # getter for: Lcom/example/m6wmr/MyuserActivity;->context:Landroid/content/Context;
    invoke-static {v10}, Lcom/example/m6wmr/MyuserActivity;->access$0(Lcom/example/m6wmr/MyuserActivity;)Landroid/content/Context;

    move-result-object v10

    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "\u6570\u636e\u5904\u7406\u5931\u8d25:"

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v12, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v12}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11, v13}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v10

    invoke-virtual {v10}, Landroid/widget/Toast;->show()V

    .line 202
    iget-object v10, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v10}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    .line 203
    .local v0, "checkinfo":Ljava/lang/String;
    const-string v10, "nologin"

    invoke-virtual {v0, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_0

    .line 205
    new-instance v5, Landroid/content/Intent;

    invoke-direct {v5}, Landroid/content/Intent;-><init>()V

    .line 206
    .local v5, "intent":Landroid/content/Intent;
    iget-object v10, p0, Lcom/example/m6wmr/MyuserActivity$3;->this$0:Lcom/example/m6wmr/MyuserActivity;

    # getter for: Lcom/example/m6wmr/MyuserActivity;->context:Landroid/content/Context;
    invoke-static {v10}, Lcom/example/m6wmr/MyuserActivity;->access$0(Lcom/example/m6wmr/MyuserActivity;)Landroid/content/Context;

    move-result-object v10

    const-class v11, Lcom/example/m6wmr/LoginActivity;

    invoke-virtual {v5, v10, v11}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 207
    iget-object v10, p0, Lcom/example/m6wmr/MyuserActivity$3;->this$0:Lcom/example/m6wmr/MyuserActivity;

    invoke-virtual {v10, v5}, Lcom/example/m6wmr/MyuserActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 214
    .end local v0    # "checkinfo":Ljava/lang/String;
    .end local v5    # "intent":Landroid/content/Intent;
    :pswitch_2
    iget-object v10, p0, Lcom/example/m6wmr/MyuserActivity$3;->this$0:Lcom/example/m6wmr/MyuserActivity;

    # getter for: Lcom/example/m6wmr/MyuserActivity;->context:Landroid/content/Context;
    invoke-static {v10}, Lcom/example/m6wmr/MyuserActivity;->access$0(Lcom/example/m6wmr/MyuserActivity;)Landroid/content/Context;

    move-result-object v10

    const-string v11, "\u63d0\u793a\u4fe1\u606f\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\u6216\u8005\u8054\u7cfb\u5ba2\u670d"

    invoke-static {v10, v11, v13}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v10

    invoke-virtual {v10}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 222
    :pswitch_3
    :try_start_0
    new-instance v7, Lorg/json/JSONObject;

    const-string v10, "typestr"

    invoke-direct {v7, v10}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 223
    .local v7, "json":Lorg/json/JSONObject;
    const-string v10, "msg"

    invoke-virtual {v7, v10}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v6

    .line 224
    .local v6, "jarray":Lorg/json/JSONObject;
    const-string v10, "typelist"

    invoke-virtual {v6, v10}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v8

    .line 226
    .local v8, "myarray":Lorg/json/JSONArray;
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_1
    invoke-virtual {v8}, Lorg/json/JSONArray;->length()I

    move-result v10

    if-ge v2, v10, :cond_0

    .line 228
    invoke-virtual {v8, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v10

    const-string v11, "id"

    invoke-virtual {v10, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 226
    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    .line 234
    .end local v2    # "i":I
    .end local v6    # "jarray":Lorg/json/JSONObject;
    .end local v7    # "json":Lorg/json/JSONObject;
    .end local v8    # "myarray":Lorg/json/JSONArray;
    :catch_0
    move-exception v1

    .line 236
    .local v1, "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    goto/16 :goto_0

    .line 244
    .end local v1    # "e":Lorg/json/JSONException;
    :pswitch_4
    sget-object v10, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "\u8fd4\u56de\u4e0a\u4f20\u540e\u56fe\u7247\u6570\u636e:"

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v12, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v12}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 246
    new-instance v10, Ljava/lang/StringBuilder;

    iget-object v11, p0, Lcom/example/m6wmr/MyuserActivity$3;->this$0:Lcom/example/m6wmr/MyuserActivity;

    # getter for: Lcom/example/m6wmr/MyuserActivity;->m:Lmyapp/MyApp;
    invoke-static {v11}, Lcom/example/m6wmr/MyuserActivity;->access$1(Lcom/example/m6wmr/MyuserActivity;)Lmyapp/MyApp;

    move-result-object v11

    invoke-virtual {v11}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v11

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v11, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v11}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 248
    .local v4, "imgurl":Ljava/lang/String;
    sget-object v10, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "\u56fe\u7247\u5730\u5740:"

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v11, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 252
    new-instance v3, LPlugclass/ImageLoader;

    iget-object v10, p0, Lcom/example/m6wmr/MyuserActivity$3;->this$0:Lcom/example/m6wmr/MyuserActivity;

    # getter for: Lcom/example/m6wmr/MyuserActivity;->context:Landroid/content/Context;
    invoke-static {v10}, Lcom/example/m6wmr/MyuserActivity;->access$0(Lcom/example/m6wmr/MyuserActivity;)Landroid/content/Context;

    move-result-object v10

    invoke-direct {v3, v10}, LPlugclass/ImageLoader;-><init>(Landroid/content/Context;)V

    .line 253
    .local v3, "imageLoader":LPlugclass/ImageLoader;
    iget-object v10, p0, Lcom/example/m6wmr/MyuserActivity$3;->this$0:Lcom/example/m6wmr/MyuserActivity;

    # getter for: Lcom/example/m6wmr/MyuserActivity;->im_user:Landroid/widget/ImageView;
    invoke-static {v10}, Lcom/example/m6wmr/MyuserActivity;->access$2(Lcom/example/m6wmr/MyuserActivity;)Landroid/widget/ImageView;

    move-result-object v10

    invoke-virtual {v3, v4, v10}, LPlugclass/ImageLoader;->DisplayImage(Ljava/lang/String;Landroid/widget/ImageView;)V

    .line 254
    iget-object v10, p0, Lcom/example/m6wmr/MyuserActivity$3;->this$0:Lcom/example/m6wmr/MyuserActivity;

    const-string v11, "userInfo"

    invoke-virtual {v10, v11, v13}, Lcom/example/m6wmr/MyuserActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v9

    .line 256
    .local v9, "sharedPreferences":Landroid/content/SharedPreferences;
    invoke-interface {v9}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v10

    const-string v11, "logo"

    invoke-interface {v10, v11, v4}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v10

    invoke-interface {v10}, Landroid/content/SharedPreferences$Editor;->commit()Z

    goto/16 :goto_0

    .line 260
    .end local v3    # "imageLoader":LPlugclass/ImageLoader;
    .end local v4    # "imgurl":Ljava/lang/String;
    .end local v9    # "sharedPreferences":Landroid/content/SharedPreferences;
    :pswitch_5
    iget-object v10, p0, Lcom/example/m6wmr/MyuserActivity$3;->this$0:Lcom/example/m6wmr/MyuserActivity;

    # getter for: Lcom/example/m6wmr/MyuserActivity;->context:Landroid/content/Context;
    invoke-static {v10}, Lcom/example/m6wmr/MyuserActivity;->access$0(Lcom/example/m6wmr/MyuserActivity;)Landroid/content/Context;

    move-result-object v10

    const-string v11, "\u4e0a\u4f20\u56fe\u7247\u5931\u8d25"

    const-string v12, "\u4e0a\u4f20\u5931\u8d25"

    invoke-static {v10, v11, v12}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    .line 194
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_0
        :pswitch_3
        :pswitch_2
        :pswitch_0
        :pswitch_0
        :pswitch_4
        :pswitch_5
        :pswitch_0
        :pswitch_0
    .end packed-switch
.end method
